package com.itc.api.service;

import com.itc.api.pojo.dao.User.UserDAO;
import com.itc.api.pojo.dto.User.UserDTO;
import com.itc.api.response.Result;

public interface UserService {

    /**
     * 登录
     *
     * @param account  账户
     * @param password 密码
     * @return {@link Result }<{@link String }>
     */
    Result<String> login(String account, String password);

    /**
     * 验证
     *
     * @param token 令牌
     * @return {@link Result }<{@link String }>
     */
    Result<String> verify(String token);

    /**
     * 注册
     *
     * @param email         电子邮件
     * @param account       账户
     * @param password      密码
     * @param authCode      身份验证代码
     * @param authCodeToken 验证码令牌
     * @return {@link Result }<{@link String }>
     */
    Result<String> register(String email, String account, String password, String authCode, String authCodeToken);
}
